﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace GoldenAgeHelper
{
    public partial class frmAbout : Form
    {
        public frmAbout()
        {
            InitializeComponent();
        }

        private void frmAbout_Load(object sender, EventArgs e)
        {
            FileStream fs = new FileStream("readme.txt", FileMode.Open);

            byte[] rd = new byte[fs.Length];
            fs.Read(rd, 0, (int)fs.Length);

            string txt = Encoding.GetEncoding("GB2312").GetString(rd);

            //StreamReader reader = new StreamReader(fs);
            //string txt = reader.ReadToEnd();

            this.textBox1.Text = txt;
            //reader.Close();
            fs.Close();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start(this.linkLabel1.Text);
            }
            catch (Exception ex)
            {

            }
            
        }
    }
}